/**
 * 超级表单
 */
export interface ISuperForm {
  _id?: string;
  title?: string;
  fields?: ISuperFormDataField;
  create_time?: number;
  update_time?: number;
}

export interface ISuperFormDataField {
  /** 字段标识符（自动生成也可以自定义） */
  field?: string;
  /** 字段名称 */
  label?: string;
  /**
   * 控件
   */
  widget?: 'text' | 'select' | 'radio' | 'file-selector' | 'image-selector';

  placeholder?: string;

  property?: any;

  options?: ISuperFormDataFieldOption[];
}

export interface ISuperFormDataFieldOption {
  label?: string;
  value?: string;
}
